var n = parseInt(prompt("输入一个数字"))
var original = n;
while(n > 1) {
  if (original % n == 0)
      console.log(n);
  n -= 1;
}
